<? 
class CHead{
    static public $scripts = array();
    static public $styles  = array();
    
    
    static public function addScript($filename){
        self::$scripts[$filename] = $filename;
    }
    
    static public function addStyle($filename){
        self::$styles[$filename] = $filename;
    }
    
    static public function removeScript($filename){
        if(isset(self::$scripts[$filename]))
            unset(self::$scripts[$filename]);
    }
    
    static public function removeStyle($filename){
        if(isset(self::$styles[$filename]))
            unset(self::$styles[$filename]);
    }
}

?>